package org.example.platform.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {


    @GetMapping("/admin/test")
    public String admin() {
        return "test admin ~";
    }

    @RequestMapping("/user/test")
    public String user() {
        return "user test";
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello ~";
    }


    @GetMapping("/phone")
    public String phone() {
        return "test admin ~";
    }




    @GetMapping("/index")
    @ResponseBody
    public String index() {
        return "Hello World ~";
    }

    @RequestMapping("/login")
    public String showLogin() {
        return "login";
    }

    @GetMapping("/home")
    @ResponseBody
    public String home() {
        return "欢迎来到主页 ~";
    }

}
